angular.module('app')
    .filter('packName', function() {
        return function(id) {
            var packname = "未知套餐";
            for(var i = 0; i < window.appInfo.userPackList.length; i++){
                if(window.appInfo.userPackList[i]._id === id){
                    packname = window.appInfo.package[window.appInfo.userPackList[i].index].name;
                    break;
                }
            }
            return packname;
        }
    });